package enterprises

class TypeProvider {

	private static final int MIN_NAME_LENGTH = 3 
	
    static constraints = {
		name(blank:false, minSize:MIN_NAME_LENGTH, unique:true)
    }
	
	static hasMany = [providers:Provider]
	
	String name
	
	@Override
	public String toString() {
		name;
	}
}
